In Astrophysics, the virial mass is the mass of a gravitationally bound astrophysical system, assuming the virial theorem applies. In the context of galaxy formation and dark matter halos, the virial mass is defined as the mass enclosed within the virial radius of a gravitationally bound system, a radius within which the system obeys the virial theorem. The virial radius is determined using a "top-hat" model. A spherical "top hat" density perturbation destined to become a galaxy begins to expand, but the expansion is halted and reversed due to the mass collapsing under gravity until the sphere reaches equilibrium – it is said to be virialized. Within this radius, the sphere obeys the virial theorem which says that the average kinetic energy is equal to minus one half times the average potential energy, , and this radius defines the virial radius.
Virial radius
The virial radius of a gravitationally bound astrophysical system is the radius within which the virial theorem applies. It is defined as the radius at which the density is equal to the critical density
of the universe at the redshift of the system, multiplied by an overdensity constant
: